const app = getApp()
Component({
  properties: {
    selected: Number
  },
  data: {
    color: "#764213",
    selectedColor: "#ff0101",
    tabbar_list: [{
      pagePath: "/pages/statistics/statistics",
      text: "统计",
      iconPath: "../assets/images/tabbar/icon_statistics.png",
      selectedIconPath: "../assets/images/tabbar/icon_statistics_active.png",
      type: 0
    },
    {
      pagePath: "/pages/like/like",
      text: "请便",
      iconPath: "../assets/images/tabbar/icon_pleas.png",
      selectedIconPath: "../assets/images/tabbar/icon_pleas_active.png",
      type: 1
    },
    {
      pagePath: "/pages/mine/mine",
      text: "我",
      iconPath: "../assets/images/tabbar/icon_mine.png",
      selectedIconPath: "../assets/images/tabbar/icon_mine_active.png",
      type: 2
    }],
    tabheight:app.globalData.phone_height
  },
  methods: {
    switchTab(e) {
      let url = e.currentTarget.dataset.path
      wx.switchTab({ url })
    }
  }
})
